<?php echo $this->fetch('inc/header.html'); ?> 
<?php
$this->_var['dpagejs'][] = $this->_var['TMPL_REAL']."/js/notify.js";
$this->_var['dcpagejs'][] = $this->_var['TMPL_REAL']."/js/notify.js";
$this->_var['dpagecss'][] = $this->_var['TMPL_REAL']."/css/notify.css";
?>
<link rel="stylesheet" type="text/css" href="<?php 
$k = array (
  'name' => 'parse_css',
  'v' => $this->_var['dpagecss'],
);
echo $k['name']($k['v']);
?>" />
<script type="text/javascript" src="<?php 
$k = array (
  'name' => 'parse_script',
  'v' => $this->_var['dpagejs'],
  'c' => $this->_var['dcpagejs'],
);
echo $k['name']($k['v'],$k['c']);
?>"></script>

<div class="blank"></div>

<div class="shadow_bg">
	<div class="wrap white_box"">
		<div class="page_title">
			<?php if ($this->_var['all'] == 0): ?>
			未读通知
			<?php else: ?>
			全部通知
			<?php endif; ?>
		</div>
		<div class="switch_nav">
			<ul>
				<li <?php if ($this->_var['all'] == 0): ?>class="current"<?php endif; ?>><a href="<?php
echo parse_url_tag("u:notify#index|"."".""); 
?>">未读通知</a></li>
				<li <?php if ($this->_var['all'] == 1): ?>class="current"<?php endif; ?>><a href="<?php
echo parse_url_tag("u:notify#index|"."all=1".""); 
?>">全部通知</a></li>				
			</ul>
		</div>
		
		<div class="full">
		<?php if ($this->_var['notify_list']): ?>
		<?php $_from = $this->_var['notify_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'notify_item');if (count($_from)):
    foreach ($_from AS $this->_var['notify_item']):
?>
		<div class="notify_item">
			<a href="<?php echo $this->_var['notify_item']['url']; ?>" target="_blank" class="linkgreen"><?php echo $this->_var['notify_item']['log_info']; ?></a> <span><?php 
$k = array (
  'name' => 'pass_date',
  'v' => $this->_var['notify_item']['log_time'],
);
echo $k['name']($k['v']);
?></span>
			<div class="blank5"></div>
			<div class="notify_op">
				<?php if ($this->_var['notify_item']['is_read'] == 0): ?>
				<a href="<?php
echo parse_url_tag("u:notify#ignore|"."id=".$this->_var['notify_item']['id']."".""); 
?>" class="linkgreen">忽略</a> | 
				<?php endif; ?>
				<a href="<?php
echo parse_url_tag("u:notify#delnotify|"."id=".$this->_var['notify_item']['id']."".""); 
?>" class="delnotify linkgreen">删除</a>
			</div>
			<div class="blank5"></div>
		</div>
		<div class="blank"></div>
		<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
	
		<div class="blank"></div>
		<a href="<?php
echo parse_url_tag("u:notify#ignoreall|"."".""); 
?>" class="linkgreen" style="font-size:14px;">忽略全部通知</a>
		
		<div class="blank"></div>
		<div class="pages"><?php echo $this->_var['pages']; ?></div>
		<?php else: ?>
		<div class="empty_tip"><?php if ($this->_var['all'] == 0): ?>没有新通知<?php else: ?>没有通知记录<?php endif; ?></div>
		<?php endif; ?>
		</div>
				
	</div>
</div>
<div class="blank"></div>
<?php echo $this->fetch('inc/footer.html'); ?> 